From: Georges Basile Stavracas Neto Date: Thu, 10 Dec 2020 22:21:30 +0000 (-0300) Subject: dash: Allow icon sizes equal to the available space X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~681 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e3542d5849e6bcbaa1dd1f49ac1b684df49f1c28;p=gnome-shell.git dash: Allow icon sizes equal to the available space When checking for a suitable icon size, Dash currently checks which of the hardcoded icon sizes is smaller than the calculated available size. On some circumstances, however, when the calculated available size is exactly equal to the hardcoded icon sizes, Dash selects a smaller size. This cascades (the next icon size is exactly the smaller size, etc) and ends up with always Dash selecting smallest size available, even with plenty of available space. Check if the calculated available size is smaller or equal to the hardcoded icon sizes. Part-of: --- diff --git a/js/ui/dash.js b/js/ui/dash.js index 7e4457e5e..650e07c4b 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -597,7 +597,7 @@ var Dash = GObject.registerClass({ let newIconSize = baseIconSizes[0]; for (let i = 0; i < iconSizes.length; i++) { - if (iconSizes[i] < availSize) + if (iconSizes[i] <= availSize) newIconSize = baseIconSizes[i]; }